# author ： 以凝
# time   ： 2024/3/17  22:51
from PyQt5.QtGui import QImageReader


def read(filename, default=None):

    try:
        reader = QImageReader(filename)
        reader.setAutoTransform(True)
        return reader.read()
    except:
        return default
